import { getElInputNumer } from '@/constants/markupRate';

export const TABLE_COLUMNS = [
  {
    title: '品类树',
    key: 'categoryPath'
  },
  {
    title: '四级类名称',
    key: 'categoryName'
  },
  {
    title: '四级类编码',
    key: 'categoryNo'
  },
  {
    title: '品牌名称',
    key: 'brandName'
  },
  {
    title: '系列',
    key: 'seriesName'
  },
  {
    title: '是否核心商品',
    key: 'isCoreProductStr'
  },
  {
    title: '集团指导加价率',
    key: 'groupGuideAddRate',
    width: 120,
  },
  {
    title: '区域标准加价率',
    width: 120,
    render: (h, { row }) => getElInputNumer(h, row, 'guideAddRate')
  },
  {
    title: '集团畅销指导加价率',
    key: 'groupSellWellAddRate',
    width: 120,
  },
  {
    title: '区域畅销标准加价率',
    width: 120,
    render: (h, { row }) => getElInputNumer(h, row, 'sellWellAddRate')
  },
  {
    title: '集团成交最低加价率',
    key: 'groupLimitAddRate',
    width: 120,
  },
  {
    title: '区域成交最低加价率',
    width: 120,
    render: (h, { row }) => getElInputNumer(h, row, 'limitAddRate')
  },
  {
    title: '操作',
    key: 'action',
    fixed: 'right'
  }
]
